package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.DistrictBean;
import com.topscore.uke.mvp.BaseContractor;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClient;

import java.util.List;

/**
 * Created by 71468 on 2017/11/21.
 */

public interface GetDistrictInfoContractor extends BaseContractor {
    interface Model{
        ApiService mService = NetClient.getInstance().net().create(ApiService.class);
        void getDistrict(String cityId);
    }

    interface View extends BaseView{
        void onGetDistrictInfoSuccess(List<DistrictBean> districtBeanList);
    }

    interface Presenter{
        void getDistrictInfo(String cityId);
    }

    interface CallBack extends BaseHttpListener{
        void onSuccess(BaseResponse<List<DistrictBean>> response);
    }
}
